package com.sc.nft.entity.req;

import com.sc.nft.entity.req.EcologyHatchUsePropsExchangeRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @author 朱梦晨
 * @Description:
 * @date 2024-08-06
 */
@Data
public class EcologyHatchExchangeConfRequest {

    @ApiModelProperty("熔炼上限配置id 编辑时传")
    private Long id;

    @ApiModelProperty("熔炼配置id")
    @NotNull(message = "熔炼配置id不能为空")
    private Long ecologyHatchId;

    /**
     * 系统赠送状态：1开启/0未开启
     */
    @ApiModelProperty("系统赠送状态")
    @NotNull(message = "系统赠送状态不能为空")
    private Boolean sysGiftStatus;

    /**
     * 赠送条件：熔炼份数>=
     */
    @ApiModelProperty("赠送条件：熔炼份数>=")
    @NotNull(message = "赠送条件不能为空")
    private Integer giftLimit;

    /**
     * 赠送数量
     */
    @ApiModelProperty("赠送数量")
    @NotNull(message = "赠送数量不能为空")
    private Integer giftCount;

    /**
     * 兑换开关：1开启/0关闭
     */
    @ApiModelProperty("兑换开关")
    @NotNull(message = "兑换开关不能为空")
    private Boolean status;

    @NotNull(message = "兑换消耗道具卡列表不能为空")
    @Size(min = 1, message = "兑换消耗道具卡列表不能为空")
    private List<EcologyHatchUsePropsExchangeRequest> ecologyHatchUsePropsExchangeRequestList;


}
